<!doctype html>
<html lang=en dir=ltr class="no-js theme-united" xmlns:th="http://www.thymeleaf.org">
<div th:replace="site/head::head(${title}, ${pageName})"></div>

<body class="page page-is-loading page-type-page page-type-home">
    <div th:replace="site/head::navbar"></div>

    <div class="container-fluid main-container" id=J_main-container>
        <div class=row>
            <div class=col-md-12>
                <h2 class=page-title>标签分类</h2>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12">
                <h1 class="post-title">
                    <a th:href="'/tags/' + ${tag}" rel="bookmark" th:text="'Tag: # ' + ${tag}"></a>
                </h1>
            </div>
        </div>

        <div class="row post-container-wrapper">
            <th:block th:each="article : ${pageInfo.getList()}">
                <div class=col-md-6>
                    <div class=post-container>
                        <h2 class=post-title><a th:text="${article.title}" th:href="@{'/post/' + ${article.id}}" rel=bookmark></a></h2>
                        <div class=meta-box><span class=m-post-date><i class="fa fa-calendar-o"></i><span th:text="${commonUtils.fmtdate(article.createTime)}"></span></span>
                            <span class=m-post-nick>听风合笙</span></div>
                        <div class="post-content post-expect"><span th:text="${#strings.substring(commonUtils.StringFilter(article.content), 0, 200)} + '&ensp;'"></span>
                            <a class="more-link btn btn-primary btn-xs" th:href="@{'/post/' + ${article.id}}">阅读全文</a></div>
                    </div>
                </div>
            </th:block>
        </div>

<!--        <div class="row home-more-container">-->
<!--            <div class=col-md-12>-->
<!--                <h2 class=page-title>继续学习</h2>-->
<!--            </div>-->
<!--            <div class=col-md-12>-->
<!--                <div class=post-container>-->
<!--                    <div class=row>-->
<!--                        <div class=col-md-4><a class="btn btn-primary home-browser-more-btn" href=/page/2.html>浏览更多文章</a></div>-->
<!--                        <div class=col-md-8></div>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
        <div th:replace="common/page::pagination(${pageInfo}, ${link})"></div>
    </div>

    <div th:replace="site/footer::footer(${pageName})"></div>
</body>
</html>